using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Index_Register : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnRegister_Click(object sender, EventArgs e)
    {
        string strUserName = txtUserName.Text.Trim();
        string strPws = txtPwd.Text.Trim();
        string strEmail = txtMail.Text.Trim();
        string strPwsResetQ = txtPwdResetQ.Text.Trim();
        string strAnswer = txtAnswer.Text.Trim();
        
        //business method here to valid register
        bool bRes = false;

        //register success
        if (bRes)
        {
            ClientScript.RegisterClientScriptBlock(typeof(Page), "register", "alert('Register Success');this.location.href='Default.aspx';");
        }
        else
        {
            ClientScript.RegisterClientScriptBlock(typeof(Page), "register", "alert('Register Failed');this.location.href='Register.aspx';");
        }
    }
}
